//
//  MusicPlay.h
//  One
//
//  Created by mac on 16/5/30.
//  Copyright © 2016年 mac. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>
#import "MusicModleObject.h"
#import "MusicByMonth.h"

@interface MusicPlay : NSObject

@property (nonatomic, strong) AVQueuePlayer *avPlayer;
@property(nonatomic,assign) NSInteger currentPlayIndex;
@property (nonatomic,retain)MusicModleObject* currenPlayItem;
@property (nonatomic,assign) NSInteger playListCount;
@property(nonatomic,assign) BOOL isPlaying;
@property (nonatomic,copy) NSMutableArray *arrayPlayList;

+ (id)shareAVPlay;
- (void)playAnthorMusicWithUrl:(NSURL *)url CurrentPlayItem:(MusicModleObject *)currentPlayItem;
- (void)playMusicWithUrl:(NSURL *)url CurrentPlayItem:(MusicModleObject *)currentPlayItem;
- (void)doPlay;
- (void)playDidEnd;


@end
